//
//  InformationController.m
//  Theme
//
//  Created by 张鹏伟 on 15/8/20.
//  Copyright (c) 2015年 108. All rights reserved.
//

#import "InformationController.h"

@interface InformationController ()

@end

@implementation InformationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"要闻";
    self.view.backgroundColor = [[ConfigurationTheme shareInstance] getThemeColorWithName:@"ygColor"];

    //接收主题改变的通知
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeThemeNotificantion) name:ThemeChangeNotification object:nil];
    
    [self changeThemeNotificantion];
    
    // Do any additional setup after loading the view.
}

//改变主题的通知
- (void)changeThemeNotificantion{
    self.view.backgroundColor = [[ConfigurationTheme shareInstance] getThemeColorWithName:@"ygColor"];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
